<script>
	$(function() {
	$( "#datepicker" ).datepicker({ dateFormat: 'yy/mm/dd' });
	});
</script>
<div id="main_content">
	<h3>Edit User</h3>
    <div class="form_add">
	<?php
       echo "<label for='disabledSelect' style='color:red;'>".$this->session->flashdata('message')."</label>";
    ?> 
    <form action="" method="post">
       <table border="0" class="add_data">
            <?php foreach($data as $row){ ?>
       		<tr>
            	<td align="right">
                	<label>Full Name <font color="#FF0000">(*)</font></label>
                </td>
                <td>
                    <input type="text" name="FullName" size="50" value="<?php echo row('FullName'); ?>" maxlength="255" >
                    <span class="error"><?php echo form_error('FullName'); ?></span>
                </td>
            </tr>
       		<tr>
            	<td align="right">
                	<label>User Name <font color="#FF0000">(*)</font></label>
                </td>
                <td>
                    <input type="text" name="UserName" size="50" value="<?php echo row('UserName'); ?>" maxlength="50" >
                    <span class="error"><?php echo row('UserName'); ?></span>
                </td>
            </tr>
       		<tr>
            	<td align="right">
                	<label>Email <font color="#FF0000">(*)</font></label>
                </td>
                <td>
                    <input type="text" name="Email" size="50" value="<?php echo row('Email'); ?>" />
                    <span class="error"><?php echo form_error('Email'); ?></span>
                </td>
            </tr>
       		<tr>
            	<td align="right">
                	<label>Manger </label>
                </td>
                <td>
                	<select name="Level">
                    	<option value="2">HR</option>
                        <option value="1">Admin</option>
                    </select>
                </td>
            </tr>
       		<tr>
            	<td align="right">
                	<label>Date Create </label>
                </td>
                <td>
                	<input type="text" name="DateCreate" size="20" id="datepicker">
                    <label class="dateicon"></label>
                </td>
            </tr>
            <tr>
            	<td align="right">
                	<label>Status </label>
                </td>
                <td>
                	<input type="checkbox" name="status"> &nbsp;<label>Active</label>
                </td>
            </tr>
            <tr>         
                <td colspan="2" align="left">
                	<input type="submit" name="submit" value="Submit">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="reset" name="reset" value="Cancel">
                </td>
            </tr>
        <?php } ?>                                                                                        
       </table> 
    </form>
    </div>
</div>